import {Injectable } from '@nestjs/common';
import { RedisService } from './redis/redis.service';

@Injectable()
export class AppService {
  constructor(
    private redis:RedisService
  ){}
  async getHello() {
    let rs = await this.redis.set('ccc', 'sdfsdf123', 'EX', 3000, 'NX')
    console.log(rs)
    return 'Hello World!';
  }
}
